﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DevExpress.ExpressApp.DC;
using DevExpress.Persistent.Base;
using DevExpress.Persistent.BaseImpl;
using DevExpress.Xpo;
using DevExpress.Persistent.Validation;
namespace Ascent.QiPei.Module.BusinessObjects.Base
{
    [DefaultClassOptions]
    [DevExpress.Persistent.Base.NavigationItemAttribute("基础数据")]
    [DevExpress.ExpressApp.DC.XafDisplayNameAttribute("客户类别")]
    public partial class CustomerCategory : DevExpress.Persistent.BaseImpl.BaseObject
    {
        private System.String _remark;
        private Ascent.QiPei.Module.BusinessObjects.Enums.SalesType _priceType;
        private System.String _name;
        public CustomerCategory(DevExpress.Xpo.Session session)
            : base(session)
        {
        }
        [DevExpress.ExpressApp.DC.XafDisplayNameAttribute("名称")]
        [RuleRequiredField(DefaultContexts.Save)]
        public System.String Name
        {
            get
            {
                return _name;
            }
            set
            {
                SetPropertyValue("Name", ref _name, value);
            }
        }
        [DevExpress.ExpressApp.DC.XafDisplayNameAttribute("价格类型")]
        [RuleRequiredField(DefaultContexts.Save)]
        public Ascent.QiPei.Module.BusinessObjects.Enums.SalesType PriceType
        {
            get
            {
                return _priceType;
            }
            set
            {
                SetPropertyValue("PriceType", ref _priceType, value);
            }
        }
        [DevExpress.ExpressApp.DC.XafDisplayNameAttribute("备注")]
        public System.String Remark
        {
            get
            {
                return _remark;
            }
            set
            {
                SetPropertyValue("Remark", ref _remark, value);
            }
        }
    }
}
